<!-- <html>
 <head></head>
 <body>
  <div id="righttable" style="width:100%;height:70%;padding-bottom: 2px;position:relative;"> 
   <table class="layui-table" border="1" style="width: 100%;border:1px solid #ddd;"> 
    <thead id="thead_"> 
     <tr>
      <th>站点名称</th>
      <th>站点排名</th>
      <th>站点电量(kWh)</th>
     </tr> 
    </thead> 
   </table> 
   <div style="position:absolute;bottom:2px;top:31px;overflow-y:scroll;width:100%"> 
    <table class="layui-table" border="1" style="width: 100%;border:1px solid #ddd;"> 
     <tbody id="tbody_"> 
     <tr>
      <th>站点名称</th>
      <th>站点排名</th>
      <th>站点电量(kWh)</th>
     </tr> 
     </tbody> 
    </table> 
   </div> 
  </div>
 </body>
 <style type="text/css">
 	
	.layui-table tr th,td{white-space:nowrap;padding:5px;text-align:center;width:33.4%;}
 </style>
</html> -->

<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title></title>
</head>
<body>
<label>可滚动表格——表格宽度100%，列宽度设置<col></label>
<div class="table-wrap">
    <div class="table-head">
        <div class="table-head-wrap">
            <table class="grid">
                <colgroup>
                    <col style="width:80px">
                    <col>
                    <col>
                    <col style="width:150px">
                </colgroup>
                <thead>
                <tr>
                    <th>
                        <span class="tab-link">序号</span>
                    </th>
                    <th>
                        <span class="tab-link">姓名</span>
                    </th>
                    <th>
                        <span class="tab-link">年龄</span>
                    </th>
                    <th>
                        <span class="tab-link">地址</span>
                    </th>
                </tr>
                </thead>
            </table>
        </div>
    </div>
    <div class="table-content">
        <table class="grid">
            <colgroup>
                <col style="width:80px">
                <col>
                <col>
                <col style="width:150px">
            </colgroup>
            <tbody>
            <tr>
                <td>
                    <div>001</div>
                </td>
                <td>
                    <div>小明</div>
                </td>
                <td>
                    <div>23</div>
                </td>
                <td>
                    <div>上海</div>
                </td>
            </tr>
            <tr>
                <td>
                    <div>001</div>
                </td>
                <td>
                    <div>小明</div>
                </td>
                <td>
                    <div>23</div>
                </td>
                <td>
                    <div>上海</div>
                </td>
            </tr>
            <tr>
                <td>
                    <div>001</div>
                </td>
                <td>
                    <div>小明</div>
                </td>
                <td>
                    <div>23</div>
                </td>
                <td>
                    <div>上海</div>
                </td>
            </tr>
            <tr>
                <td>
                    <div>001</div>
                </td>
                <td>
                    <div>小明</div>
                </td>
                <td>
                    <div>23</div>
                </td>
                <td>
                    <div>上海</div>
                </td>
            </tr>
            <tr>
                <td>
                    <div>001</div>
                </td>
                <td>
                    <div>小明</div>
                </td>
                <td>
                    <div>23</div>
                </td>
                <td>
                    <div>上海</div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>